package com.liang.text;

import java.io.IOException;
import java.net.Socket;

public class CilentTest {
    public static void main(String[] args) throws IOException {
        Socket socket = new Socket("127.0.0.1", 10089);

        SendMes sm = new SendMes(socket);
        AcceptMsg am = new AcceptMsg(socket);
        sm.start();
        am.start();
        while (true) {
            if (SendMes.flag) {
                System.out.println("结束");
                socket.close();
                break;
            }
        }

    }
}
